package org.jeecg.modules.system.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang.StringUtils;

import java.util.HashMap;
import java.util.Map;

public class ExtraData{
    public static String PREFIX="EXTRA_DATA_";

    @TableField(exist = false)
    private Map<String,Object> extraData=new HashMap<>();

    public void put(String substring, String value) {
        extraData.put(substring,value);
    }

    public String getString(String key){
        return (String)extraData.get(key);
    }

    public Object remove(String key){
       return extraData.remove(key);
    }

    public Integer getInteger(String key){
        Object value = extraData.get(key);
        if(value==null)return null;
        return Integer.valueOf((String)value);
    }

}
